package cn.edu.jlu.community.util;

import android.widget.Toast;

import cn.edu.jlu.community.app.GlobalContext;

public class ToastUtil {
    public static void showText(Object o) {
        showText(o, Toast.LENGTH_LONG);
    }

    public static void showText(Object o, int duration) {
        showText(o.toString(), duration);
    }

    public static void showText(CharSequence text) {
        showText(text, Toast.LENGTH_LONG);
    }

    public static void showText(CharSequence text, int duration) {
        Toast.makeText(GlobalContext.getInstance(), text, duration).show();
    }
}
